package com.hadluo.qq.server.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 注册请求参数
 * @author hadluo
 */
@Data
public class RegisterRequest {
    @NotBlank(message = "昵称不能为空")
    @Size(min = 2, max = 20, message = "昵称长度必须在2-20个字符之间")
    private String nickname;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20个字符之间")
    private String password;

    @Size(max = 1, message = "性别只能是单个字符")
    private String gender;

    private String avatar;

    @Size(max = 100, message = "个性签名不能超过100个字符")
    private String signature;
}